using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using com.creditos.be.liclEntities;

namespace com.creditos.be.liclBases
{

    public partial class RepresentantesLegales : Entity
    {

        private Int32 intOrigenSolicitudField;
        public Int32 OrigenSolicitud
        {
            get { return intOrigenSolicitudField; }
            set { intOrigenSolicitudField = value; }
        }

        private decimal intNumeroSolicitudField;
        public decimal NumeroSolicitud
        {
            get { return intNumeroSolicitudField; }
            set { intNumeroSolicitudField = value; }
        }

        private Int32 intCodigoIntegranteField;
        public Int32 CodigoIntegrante
        {
            get { return intCodigoIntegranteField; }
            set { intCodigoIntegranteField = value; }
        }

        private Int32 intCodigoConsultaField;
        public Int32 CodigoConsulta
        {
            get { return intCodigoConsultaField; }
            set { intCodigoConsultaField = value; }
        }

        private Int32 intNumeroRepresentanteField;
        [Column("rplNroRepresentante")]
        public Int32 NumeroRepresentante
        {
            get { return intNumeroRepresentanteField; }
            set { intNumeroRepresentanteField = value; }
        }

        private System.String TipoPersonaField = string.Empty;
        [Column("rplTipPersona")]
        public System.String TipoPersona
        {
            get { return TipoPersonaField; }
            set { TipoPersonaField = value; }
        }

        private System.String documentoTributarioField = string.Empty;
        [Column("rplDesDocumentoTributario")]
        public System.String DocumentoTributario
        {
            get { return documentoTributarioField; }
            set { documentoTributarioField = value; }
        }

        private System.String CodDocumentoIdentidadField = string.Empty;
        [Column("rplDesDocumentoIdentidad")]
        public System.String CodDocumentoIdentidad
        {
            get {
                if (CodDocumentoIdentidadField.Length > 11)
                    return CodDocumentoIdentidadField.Substring(0, 11);                    
                return CodDocumentoIdentidadField; 
            
            }
            set { CodDocumentoIdentidadField = value; }
        }

        private System.String CodRUCField = string.Empty;
        [Column("rplDesEmpresa")]
        public System.String CodRUC
        {
            get {
                if (CodRUCField.Length > 11)
                    return CodRUCField.Substring(0, 11);
                return CodRUCField; 
            }
            set { CodRUCField = value; }
        }

        private System.String NomClienteField = string.Empty;
        [Column("rplDesDocumentoTributario")]
        public System.String NomCliente
        {
            get {
                if (NomClienteField.Length > 60)
                    return NomClienteField.Substring(0, 60);
                return NomClienteField; 
            
            }
            set { NomClienteField = value; }
        }

        private System.String NomCargoField = string.Empty;
        [Column("rplDesCargo")]
        public System.String NomCargo
        {
            get {
                if (NomCargoField.Length > 50)
                    return NomCargoField.Substring(0, 50);
                return NomCargoField; 
            
            }
            set { NomCargoField = value; }
        }
        private Decimal numeroSecuencia;
        public Decimal NumeroSecuencia
        {
            get { return numeroSecuencia; }
            set { numeroSecuencia = value; }
        }


    }
}
